package com.bw.cashier.adapter

import android.widget.TextView
import com.bw.cashier.R
import com.bw.cashier.entity.CashierListEntityItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class CashierAdapter:BaseQuickAdapter<CashierListEntityItem,BaseViewHolder>(R.layout.item_cashier) {
    override fun convert(holder: BaseViewHolder, item: CashierListEntityItem) {

        holder.getView<TextView>(R.id.item_cashier_price).text = "￥${item.chargeAmount}"
        holder.getView<TextView>(R.id.item_cashier_name).text = item.payerName
        holder.getView<TextView>(R.id.item_cashier_phone).text = item.contactNumber
    }


}